package com.preskool.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author kennyzzz
 * @Data 2021/1/6 16:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActionResult implements Serializable {
    private Integer statusCode;
    private String msg;
    private Object data;
    private Long count;
    //总条数
    private Integer pageNum;
    //总页数
    private Integer totalPage;

    public ActionResult(Integer statusCode, String msg, Object data) {
        this.statusCode = statusCode;
        this.msg = msg;
        this.data = data;
    }
}
